<script>
  let obj = {
    name: 12,
    age: 18,
    address: 15,
    province: 16,
    city: "New York",
    zip: 100000,
    funk: 15,
    fgggh: "",
  };

  let arr2 = ["name", "age", "address", "city", "zip", "funk", "fgggh"];
  let newobj = {};
  arr2.forEach((item) => {
    newobj[item] = obj[item];
  });
  console.log(newobj);
  let arr3 = Object.values(newobj);
  console.log(arr3);
  console.log(typeof arr3);
  let arr4 = arr3.filter((item) => {
    // console.log(item);
    // console.log(typeof item === Number);
    return Number.isFinite(item);
  });
  console.log(arr4);
</script>
